from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
driver = webdriver.Chrome()
sleep(2)
driver.get("http://localhost/ranzhi/www/crm/customer-browse.html")
sleep(2)
driver.maximize_window()
sleep(2)
driver.find_element(By.XPATH,"/html/body/div/div[1]/div[1]/div/div/button").click()
sleep(2)
driver.find_element(By.ID,"account").send_keys("123456")
sleep(2)
driver.find_element(By.NAME,"password").send_keys("123456")
sleep(2)
driver.find_element(By.XPATH,"/html/body/div/div[1]/div[2]/form/div[2]/div[2]/table/tbody/tr[3]/td/label").click()
sleep(2)
driver.find_element(By.ID,"submit").click()
sleep(2)
driver.find_element(By.CSS_SELECTOR,"#s-menu-superadmin > button").click()
sleep(2)
# driver.find_element(By.CSS_SELECTOR,"#mainNavbar > ul > li:nth-child(3) > a").click()
# sleep(2)
driver.find_element(By.CSS_SELECTOR,"#bottomRightBar > ul > li:nth-child(1) > a").click()
sleep(2)
driver.find_element(By.CSS_SELECTOR,"#bottomRightBar > ul > li:nth-child(2) > a").click()
sleep(2)
driver.quit()